{php}
    $upload_image_ext = explode(',', config("app.site_setting.upload_image_ext"));
    $upload_image_ext = json_encode($upload_image_ext);
{/php}
<div class="form-group col-md-12 {$form[type].extra_class|default=''}" id="form_group_{$form[type].name}">
  <label for="{$form[type].name}">{$form[type].title}</label>
  <div class="form-controls">
    <div id="{$form[type].name}">
      <textarea style="display:none;" class="js-editormd" data-image-formats='{$upload_image_ext|default=""}' data-watch="{$form[type].watch|default=true}" name="{$form[type].name}">{$form[type].value|default=''}</textarea>
    </div>
    {notempty name="form[type].remark"}
    <small class="form-text text-muted">{$form[type].remark|raw|clear_js}</small>
    {/notempty}
  </div>
</div>
{assign name="useEditormd" value="1" /}